package com.rzx.mybackend.config.websocket;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * WebSocketConfig
 *
 * @author renzhexian
 * @date 2025/7/23
 */
@Configuration
public class WebSocketConfig {

    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        System.out.println("✅ ServerEndpointExporter 已创建，将扫描 @ServerEndpoint");
        return new ServerEndpointExporter();
    }

}
